package lormi.meipin.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;

import lormi.meipin.exception.LMException;
import lormi.meipin.service.*;


public class BaseController{
	
	public void checkResult(BindingResult result) throws LMException{
		if (result.hasErrors()) {
			throw new LMException(result.getAllErrors().get(0).getDefaultMessage());
		}
	}
	
	@Autowired
	protected IPositionClassService positionClassService;

	@Autowired
	protected ISystemInfoService systemInfoService;

	@Autowired
	protected ITellLogService tellLogService;

	@Autowired
	protected IComplainService complainService;

	@Autowired
	protected IActivityService activityService;

	@Autowired
	protected ICityService cityService;
	
	@Autowired
	protected ICheckCodeService checkCodeService;
	
	@Autowired
	protected IEnvironmentService environmentService;
	
	@Autowired
	protected IExpectWorkService expectWorkService;
	
	@Autowired
	protected IFeedBackService feedBackService;

	@Autowired
	protected IFocusPositionService focusPositionService;
	
	@Autowired
	protected IFocusTalentService focusTalentService;
	
	@Autowired
	protected IMerChantService merChantService;
	
	@Autowired
	protected IPositionService positionService;
	
	@Autowired
	protected IMemberService memberService;
	
	@Autowired
	protected IRechargeLogService rechargeLogService;

	@Autowired
	protected IShareService shareService;

	@Autowired
	protected ITalentService talentService;

	@Autowired
	protected ITrainedService trainedService;

	@Autowired
	protected IInvitationCodeService invitationCodeService;
	
	@Autowired
	protected IInvitationLogService invitationLogService;

	@Autowired
	protected ILoginLogService loginLogService;
	
	@Autowired
	protected ILocationService locationService;
	
	@Autowired
	protected ILocationLogService locationLogService;

	@Autowired
	protected ILabelTemplateService labelTemplateService;
	
	@Autowired
	protected IWorkedService workedService;
	
	@Autowired
	protected ISchoolService schoolService;

	@Autowired
	protected ISplashScreenService splashScreenService;

	@Autowired
	protected ISpecialClassService specialClassService;
	
	@Autowired
	protected ITokenService tokenService;

	@Autowired
	protected IQiNiuService qiNiuService;

	@Autowired
	protected IRongyunService rongyunService;
	
	
}
